package hcn.protocol.ods.inpatient;

import ctd.util.xml.jaxb.DateTimeAdapter;
import hcn.protocol.ods.CardBean;
import hcn.protocol.ods.IdentityBean;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 在院患者列表查询请求
 * Created by zhengz on 2016/3/23.
 */

@XmlRootElement(name = "inpatientInfo")
public class InpatientInfoBean implements Serializable{

    private static final long serialVersionUID = -2041436802946457958L;
    private String localDeptId;
    private String deptName;
    private String bedNo;
    private String inpatientNo;
    private String inpatientSerialNo;
    private String name;
    private String sex;
    private String age;
    private String inpatientType;
    private String insuranceType;
    private String currentDiagnosis;
    private String criticalFlag;
    private String criticalDesc;
    private String allergyFlag;
    private String allergyDesc;
    private String arrearageFlag;
    private String arrearageDesc;
    private String doctorName;
    private String nurseName;
    private List<CardBean> cards;
    private List<IdentityBean> identitys;
    private Date inHospitalDate;
    private List<Date> operationDate;
    private Date leaveHospitalDate;
    private String opType;

    @XmlElement
    public String getLocalDeptId() {
        return localDeptId;
    }

    public void setLocalDeptId(String localDeptId) {
        this.localDeptId = localDeptId;
    }

    @XmlElement
    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    @XmlElement
    public String getBedNo() {
        return bedNo;
    }

    public void setBedNo(String bedNo) {
        this.bedNo = bedNo;
    }

    @XmlElement
    public String getInpatientNo() {
        return inpatientNo;
    }

    public void setInpatientNo(String inpatientNo) {
        this.inpatientNo = inpatientNo;
    }

    @XmlElement
    public String getInpatientSerialNo() {
        return inpatientSerialNo;
    }

    public void setInpatientSerialNo(String inpatientSerialNo) {
        this.inpatientSerialNo = inpatientSerialNo;
    }

    @XmlElement
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @XmlElement
    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    @XmlElement
    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }

    @XmlElement
    public String getInpatientType() {
        return inpatientType;
    }

    public void setInpatientType(String inpatientType) {
        this.inpatientType = inpatientType;
    }

    @XmlElement
    public String getInsuranceType() {
        return insuranceType;
    }

    public void setInsuranceType(String insuranceType) {
        this.insuranceType = insuranceType;
    }

    @XmlElement
    public String getCurrentDiagnosis() {
        return currentDiagnosis;
    }

    public void setCurrentDiagnosis(String currentDiagnosis) {
        this.currentDiagnosis = currentDiagnosis;
    }

    @XmlElement
    public String getCriticalFlag() {
        return criticalFlag;
    }

    public void setCriticalFlag(String criticalFlag) {
        this.criticalFlag = criticalFlag;
    }

    @XmlElement
    public String getCriticalDesc() {
        return criticalDesc;
    }

    public void setCriticalDesc(String criticalDesc) {
        this.criticalDesc = criticalDesc;
    }

    @XmlElement
    public String getAllergyFlag() {
        return allergyFlag;
    }

    public void setAllergyFlag(String allergyFlag) {
        this.allergyFlag = allergyFlag;
    }

    @XmlElement
    public String getAllergyDesc() {
        return allergyDesc;
    }

    public void setAllergyDesc(String allergyDesc) {
        this.allergyDesc = allergyDesc;
    }

    @XmlElement
    public String getArrearageFlag() {
        return arrearageFlag;
    }

    public void setArrearageFlag(String arrearageFlag) {
        this.arrearageFlag = arrearageFlag;
    }

    @XmlElement
    public String getArrearageDesc() {
        return arrearageDesc;
    }

    public void setArrearageDesc(String arrearageDesc) {
        this.arrearageDesc = arrearageDesc;
    }

    @XmlElement
    public String getDoctorName() {
        return doctorName;
    }

    public void setDoctorName(String doctorName) {
        this.doctorName = doctorName;
    }

    @XmlElement
    public String getNurseName() {
        return nurseName;
    }

    public void setNurseName(String nurseName) {
        this.nurseName = nurseName;
    }

    @XmlElement
    @XmlJavaTypeAdapter(DateTimeAdapter.class)
    public Date getInHospitalDate() {
        return inHospitalDate;
    }

    public void setInHospitalDate(Date inHospitalDate) {
        this.inHospitalDate = inHospitalDate;
    }

    @XmlElementWrapper(name = "operationDates")
    @XmlElement(name = "operationDate")
    @XmlJavaTypeAdapter(DateTimeAdapter.class)
    public List<Date> getOperationDate() {
        return operationDate;
    }

    public void setOperationDate(List<Date> operationDate) {
        this.operationDate = operationDate;
    }

    @XmlElement
    @XmlJavaTypeAdapter(DateTimeAdapter.class)
    public Date getLeaveHospitalDate() {
        return leaveHospitalDate;
    }

    public void setLeaveHospitalDate(Date leaveHospitalDate) {
        this.leaveHospitalDate = leaveHospitalDate;
    }

    @XmlElement
    public String getOpType() {
        return opType;
    }

    public void setOpType(String opType) {
        this.opType = opType;
    }

    @XmlElementWrapper(name = "cards")
    @XmlElement(name = "card")
    public List<CardBean> getCards() {
        return cards;
    }

    public void setCards(List<CardBean> cards) {
        this.cards = cards;
    }

    @XmlElementWrapper(name = "identitys")
    @XmlElement(name = "identity")
    public List<IdentityBean> getIdentitys() {
        return identitys;
    }

    public void setIdentitys(List<IdentityBean> identitys) {
        this.identitys = identitys;
    }
}
